package cn.leaf.calculator.bean;

import java.io.Serializable;

/**
 * 标准的参数
 *
 * @author 李克国
 * @version 1.0.0
 */
public class StandardParameterBean<T> implements ParameterBeanDefinition<T> {

    private Serializable id;

    private String name;

    private T value;

    private int state;

    @Override
    public void setId(Serializable id) {
        this.id = id;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void setValue(T value) {
        this.value = value;
    }

    @Override
    public Serializable getId() {
        return id;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public T getValue() {
        return value;
    }

    @Override
    public void updateState(int state) {
        this.state = state;
    }

    @Override
    public int getState() {
        return state;
    }
}
